function addDDLogin() {
  // 创建script标签，引入外部文件
  let script = document.createElement('script')
  script.type = 'text/javascript'
  script.src = 'https://g.alicdn.com/dingding/dinglogin/0.0.5/ddLogin.js'
  if (window.sz.ddLogin) {
    document.getElementsByTagName('head')[0].appendChild(script)
  }

}
function setIco() {
  // 创建link标签，动态设置ico图标
  let link = document.createElement('link')
  link.type = "image/x-icon"
  link.rel = "shortcut icon"
  link.href = window.sz.ico || 'favicon.ico'
  document.getElementsByTagName('head')[0].appendChild(link)
}
export default { addDDLogin, setIco };
